home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore-siege.swf / scripts / DefineButton2_415 / BUTTONCONDACTION on(release).as
Text File  |  2011-08-19  |  278b  |  12 lines

  1. on(release){
  2.    if(Math.round(_parent.HUDBAR._y) == Math.round(_parent.HUDBAR.yPos))
  3.    {
  4.       _parent.SHIP._visible = true;
  5.       _parent.gameState = 2;
  6.       stopAllSounds();
  7.       _root.MUSIC.play();
  8.       this.swapDepths(0);
  9.       this.removeMovieClip();
  10.    }
  11. }
  12.